package com.association.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class CacheConstant {
    public final static String TOKEN_KEY_PREFIX = "T:%s";                               //token
    public final static String COURIER_USER_LOGIN_KEY = "user_login_%s";  //用户登录信息



    public final static int COURIER_USER_LOGIN_EXPIRE = 3* Global.ONE_DAY;  //用户登录信息保留时间



    @Getter
    @AllArgsConstructor
    public enum GlobalConfigType {
        GLOBAL_CONFIG11((byte) 11, "快捷签收白名单"),
        GLOBAL_CONFIG12((byte) 12, "快捷代收白名单"),
        GLOBAL_CONFIG13((byte) 13, "地址聚合快捷黑名单"),
        GLOBAL_STATUS100((byte) 100, "常规配置项"),;

        private Byte type;
        private String name;
    }

}
